const Layout = () => import("@/layout/index.vue");

export default [
  {
    path: "/inventory",
    component: Layout,
    redirect: "/inventory/inventoryManage",
    meta: {
      icon: "ep/home-filled",
      title: "库存管理",
      showLink: true
    },
    children: [
      {
        path: "/inventory/inventoryManage",
        name: "inventoryManage",
        component: () => import("@/views/inventory/inventoryManage/index.vue"),
        meta: {
          title: "仓库管理",
          showLink: true,
          keepAlive: true,
          showParent: true
        }
      },
      {
        path: "/inventory/inboundManage",
        name: "inboundManage",
        component: () => import("@/views/inventory/inboundManage/index.vue"),
        meta: {
          title: "入库管理",
          showLink: true,
          keepAlive: true,
          showParent: true
        }
      },
      {
        path: "/inventory/inboundPage",
        name: "inboundPage",
        component: () =>
          import("@/views/inventory/inboundManage/inboundPage/index.vue"),
        meta: {
          title: "入库单明细",
          showLink: false,
          keepAlive: true,
          activePath: "/inventory/inboundManage"
        }
      },
      {
        path: "/inventory/inboundAddDetail",
        name: "inboundAddDetail",
        component: () =>
          import("@/views/inventory/inboundManage/inboundAddDetail/index.vue"),
        meta: {
          title: "新增入库单",
          showLink: false,
          keepAlive: true,
          activePath: "/inventory/inboundManage"
        }
      },
      {
        path: "/inventory/inboundEditDetail",
        name: "inboundEditDetail",
        component: () =>
          import("@/views/inventory/inboundManage/inboundEditDetail/index.vue"),
        meta: {
          title: "修改入库单",
          showLink: false,
          keepAlive: true,
          activePath: "/inventory/inboundManage"
        }
      },
      {
        path: "/inventory/outboundManage",
        name: "outboundManage",
        component: () => import("@/views/inventory/outboundManage/index.vue"),
        meta: {
          title: "出库管理",
          showLink: true,
          keepAlive: true,
          showParent: true
        }
      },
      {
        path: "/inventory/outboundPage",
        name: "outboundPage",
        component: () =>
          import("@/views/inventory/outboundManage/outboundPage/index.vue"),
        meta: {
          title: "出库单明细",
          showLink: false,
          keepAlive: true,
          activePath: "/inventory/outboundManage"
        }
      },
      {
        path: "/inventory/outboundAddDetail",
        name: "outboundAddDetail",
        component: () =>
          import(
            "@/views/inventory/outboundManage/outboundAddDetail/index.vue"
          ),
        meta: {
          title: "新增出库单",
          showLink: false,
          keepAlive: true,
          activePath: "/inventory/outboundManage"
        }
      },
      {
        path: "/inventory/outboundEditDetail",
        name: "outboundEditDetail",
        component: () =>
          import(
            "@/views/inventory/outboundManage/outboundEditDetail/index.vue"
          ),
        meta: {
          title: "修改出库单",
          showLink: false,
          keepAlive: true,
          activePath: "/inventory/outboundManage"
        }
      },
      {
        path: "/inventory/inventoryTransfer",
        name: "inventoryTransfer",
        component: () =>
          import("@/views/inventory/inventoryTransfer/index.vue"),
        meta: {
          title: "库存调拨",
          showLink: true,
          keepAlive: true,
          showParent: true
        }
      },
      {
        path: "/inventory/inventoryTransferConfirmDetail",
        name: "inventoryTransferConfirmDetail",
        component: () =>
          import(
            "@/views/inventory/inventoryTransfer/inventoryTransferConfirmDetail/index.vue"
          ),
        meta: {
          title: "调拨入库确认",
          showLink: false,
          keepAlive: true,
          activePath: "/inventory/inventoryTransfer"
        }
      },
      {
        path: "/inventory/inventoryTransferAddDetail",
        name: "inventoryTransferAddDetail",
        component: () =>
          import(
            "@/views/inventory/inventoryTransfer/inventoryTransferAddDetail/index.vue"
          ),
        meta: {
          title: "新增调拨单",
          showLink: false,
          keepAlive: true,
          activePath: "/inventory/inventoryTransfer"
        }
      },
      {
        path: "/inventory/inventoryTransferPage",
        name: "inventoryTransferPage",
        component: () =>
          import(
            "@/views/inventory/inventoryTransfer/inventoryTransferPage/index.vue"
          ),
        meta: {
          title: "调拨入库明细",
          showLink: false,
          keepAlive: true,
          activePath: "/inventory/inventoryTransfer"
        }
      },
      {
        path: "/inventory/inventorySearch",
        name: "inventorySearch",
        component: () => import("@/views/inventory/inventorySearch/index.vue"),
        meta: {
          title: "库存查询",
          showLink: true,
          keepAlive: true
        }
      },
      {
        path: "/inventory/inventoryCount",
        name: "inventoryCount",
        component: () => import("@/views/inventory/inventoryCount/index.vue"),
        meta: {
          title: "库存盘点",
          keepAlive: true,
          showParent: true
        }
      },
      {
        path: "/inventory/inventoryCountAddDetail",
        name: "inventoryCountAddDetail",
        component: () =>
          import(
            "@/views/inventory/inventoryCount/inventoryCountAddDetail/index.vue"
          ),
        meta: {
          title: "新增盘点单",
          keepAlive: true,
          showLink: false,
          activePath: "/inventory/inventoryCount"
        }
      },
      {
        path: "/inventory/inventoryCountPage",
        name: "inventoryCountPage",
        component: () =>
          import(
            "@/views/inventory/inventoryCount/inventoryCountPage/index.vue"
          ),
        meta: {
          title: "盘点明细",
          keepAlive: true,
          showLink: false,
          activePath: "/inventory/inventoryCount"
        }
      },
      {
        path: "/inventory/inventoryCountCheckDetail",
        name: "inventoryCountCheckDetail",
        component: () =>
          import(
            "@/views/inventory/inventoryCount/inventoryCountCheckDetail/index.vue"
          ),
        meta: {
          title: "盘点登记",
          keepAlive: true,
          showLink: false,
          activePath: "/inventory/inventoryCount"
        }
      },
      {
        path: "/inventory/boundSearch",
        name: "boundSearch",
        component: () => import("@/views/inventory/boundSearch/index.vue"),
        meta: {
          title: "出入库明细查询",
          keepAlive: true,
          showParent: true
        }
      },
      {
        path: "/inventory/boundSearchPage",
        name: "boundSearchPage",
        component: () =>
          import("@/views/inventory/boundSearch/boundSearchPage/index.vue"),
        meta: {
          title: "物料明细",
          keepAlive: true,
          showLink: false,
          activePath: "/inventory/boundSearch"
        }
      },
      {
        path: "/inventory/inventoryAbnormal",
        name: "inventoryAbnormal",
        component: () =>
          import("@/views/inventory/inventoryAbnormal/index.vue"),
        meta: {
          title: "库存异动查询",
          keepAlive: true
        }
      },
      {
        path: "/inventory/inventoryAbnormalPage",
        name: "inventoryAbnormalPage",
        component: () =>
          import(
            "@/views/inventory/inventoryAbnormal/inventoryAbnormalPage/index.vue"
          ),
        meta: {
          title: "物料明细",
          keepAlive: true,
          showLink: false,
          activePath: "/inventory/inventoryAbnormal"
        }
      },
      {
        path: "/inventory/warehouseInventoryAdjust",
        name: "warehouseInventoryAdjust",
        component: () =>
          import("@/views/inventory/warehouseInventoryAdjust/index.vue"),
        meta: {
          title: "仓库内库存调整",
          keepAlive: true
        }
      },
      {
        path: "/inventory/warehouseInventoryAdjustPage",
        name: "warehouseInventoryAdjustPage",
        component: () =>
          import(
            "@/views/inventory/warehouseInventoryAdjust/warehouseInventoryAdjustPage/index.vue"
          ),
        meta: {
          title: "调整明细",
          keepAlive: true,
          showLink: false,
          activePath: "/inventory/warehouseInventoryAdjust"
        }
      },
      {
        path: "/inventory/warehouseInventoryAdjustEditDetail",
        name: "warehouseInventoryAdjustEditDetail",
        component: () =>
          import(
            "@/views/inventory/warehouseInventoryAdjust/warehouseInventoryAdjustEditDetail/index.vue"
          ),
        meta: {
          title: "修改调整",
          keepAlive: true,
          showLink: false,
          activePath: "/inventory/warehouseInventoryAdjust"
        }
      },
      {
        path: "/inventory/warehouseInventoryAdjustAddDetail",
        name: "warehouseInventoryAdjustAddDetail",
        component: () =>
          import(
            "@/views/inventory/warehouseInventoryAdjust/warehouseInventoryAdjustAddDetail/index.vue"
          ),
        meta: {
          title: "新增调整",
          keepAlive: true,
          showLink: false,
          activePath: "/inventory/warehouseInventoryAdjust"
        }
      }
    ]
  }
] satisfies Array<RouteConfigsTable>;
